package gspushmq.v1.produce.job.core;

import java.util.Map;

import ggjob.job.GGJob;

public abstract class GGServiceJob extends GGJob {
	public String getJobName() {
		return setJobName();
	}
	public String getCorn() {
		 return getCornExpression();
	}
	
	@Override
	public void doJob(Map<String, Object> args) {
		GGServiceLogDBUtil.info(getClass(), getCornExpression(), args, "start", "任务开始");
		try {
			doServiceJob(args);
		} catch (Exception e) {
			GGServiceLogDBUtil.error(getClass(), getCornExpression(), args, e);
		} finally {
			GGServiceLogDBUtil.info(getClass(), getCornExpression(), args, "end", "任务结束");
		}
	}
	
	public void doServiceJob(Map<String, Object> args) {}
	
}
